/* ===== Reset mínimo ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===== Página ===== */
body {
  font-family: var(--tx-font-body);
  background: var(--tx-mist-50);
  color: var(--tx-ink-900);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ===== Container responsivo ===== */
@media (min-width: 768px) {
  body {
    background: var(--tx-gray-200);
  }

  .tx-content {
    max-width: 960px;
    margin: 16px auto;
    background: var(--tx-mist-50);
    border-radius: 16px;
    border: 1px solid var(--tx-gray-200);
    padding: 16px 0;
  }

  .tx-datesep {
    border-radius: 8px;
    margin-left: 16px;
    margin-right: 16px;
  }
}

/* ===== Header ===== */
.tx-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--tx-white);
  border-bottom: 1px solid var(--tx-gray-200);
  min-height: 56px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.tx-header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.tx-header__logo {
  height: 32px;
  width: auto;
}

.tx-header__tagline {
  display: flex;
  flex-direction: column;
}

.tx-header__title {
  font-family: var(--tx-font-brand);
  font-size: 13px;
  font-weight: 700;
  color: var(--tx-ink-700);
  letter-spacing: 0.02em;
}

.tx-header__subtitle {
  font-size: 11px;
  color: var(--tx-gray-500);
  line-height: 1.3;
}

.tx-header__action {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--tx-font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--tx-green);
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 12px;
  min-height: 44px;
  border-radius: 8px;
  transition: background 0.15s;
}

.tx-header__action:hover {
  background: var(--tx-green-mist);
  color: var(--tx-green-dark);
}

.tx-header__team-badge {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

@media (min-width: 768px) {
  .tx-header {
    padding: 14px 24px;
  }

  .tx-datesep {
    padding: 10px 24px;
    border-radius: 0;
  }

  .tx-today {
    margin: 12px 24px;
  }

  .tx-filter {
    padding: 10px 24px;
  }

  .tx-footer {
    padding: 24px;
  }

  .tx-main {
    background: var(--tx-mist-50);
  }
}

/* ===== Barra de filtro (sticky) ===== */
.tx-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--tx-ink-700);
  position: sticky;
  top: 56px;
  z-index: 9;
}

.tx-filter__name {
  font-size: 14px;
  font-weight: 500;
  color: var(--tx-white);
}

.tx-filter__clear {
  color: var(--tx-gray-400);
}

.tx-filter__team {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tx-filter__badge {
  width: 20px;
  height: 20px;
}

.tx-filter__clear {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--tx-gray-400);
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.tx-filter__clear:hover {
  color: var(--tx-white);
}

/* ===== Banner "Hoje tem jogo?" ===== */
.tx-today {
  margin: 12px 16px;
  padding: 14px 16px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.tx-today__badge {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.tx-today__content {
  flex: 1;
  min-width: 0;
}

.tx-today--yes {
  background: var(--tx-green-mist);
  border: 1px solid var(--tx-green);
}

.tx-today--none {
  background: var(--tx-white);
  border: 1px solid var(--tx-gray-200);
}

.tx-today--live {
  background: var(--tx-live);
  color: var(--tx-white);
  border: 1px solid var(--tx-live);
}

.tx-today__answer {
  display: block;
  font-family: var(--tx-font-brand);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.tx-today--yes .tx-today__answer {
  color: var(--tx-green-dark);
}

.tx-today--none .tx-today__answer {
  color: var(--tx-ink-700);
}

.tx-today__detail {
  display: block;
  font-size: 13px;
  margin-top: 2px;
}

.tx-today--yes .tx-today__detail {
  color: var(--tx-green-dark);
}

.tx-today--none .tx-today__detail {
  color: var(--tx-gray-500);
}

.tx-today__opponent {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.tx-today__opponent-badge {
  width: 18px;
  height: 18px;
}

/* ===== Separador de data (barra cinza claro) ===== */
.tx-datesep {
  background: var(--tx-gray-200);
  padding: 10px 16px;
  margin-top: 16px;
  margin-bottom: 8px;
}

.tx-datesep:first-child {
  margin-top: 0;
}

/* ===== Collapsed day (data + escudos numa linha) ===== */
.tx-collapsed {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  margin-top: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tx-collapsed::-webkit-scrollbar {
  display: none;
}

.tx-collapsed__label {
  font-family: var(--tx-font-brand);
  font-size: 11px;
  font-weight: 700;
  color: var(--tx-gray-400);
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.tx-collapsed__matches {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.tx-collapsed__match {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.tx-collapsed__match img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.tx-collapsed__score {
  font-size: 10px;
  font-weight: 500;
  color: var(--tx-gray-500);
  font-variant-numeric: tabular-nums;
}

@media (min-width: 768px) {
  .tx-collapsed {
    padding: 6px 16px;
  }
}

/* ===== Balão de resultados passados ===== */
.tx-results {
  margin: 12px 16px;
  padding: 12px;
  background: var(--tx-white);
  border: 1px solid var(--tx-gray-200);
  border-radius: 12px;
}

.tx-results__title {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--tx-gray-400);
  margin-bottom: 4px;
  padding: 0 4px;
}

.tx-results .tx-collapsed {
  padding: 6px 4px;
  margin-top: 0;
}

@media (min-width: 768px) {
  .tx-results {
    margin: 12px 24px;
  }
}

.tx-datesep__label {
  font-family: var(--tx-font-brand);
  font-size: 13px;
  font-weight: 700;
  color: var(--tx-ink-700);
  letter-spacing: 0.02em;
}

/* ===== Grid de cards ===== */
.tx-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .tx-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 0 24px;
  }
}

@media (min-width: 1080px) {
  .tx-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== Linha de jogo (card) ===== */
.tx-match {
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
  background: var(--tx-white);
  border: 1px solid var(--tx-gray-200);
  border-radius: 12px;
}

.tx-match--highlighted {
  border-left: 3px solid var(--tx-green);
}

.tx-match__tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--tx-gray-400);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.tx-match__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tx-match__teams {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tx-match__team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 0;
  font-family: var(--tx-font-body);
  text-align: left;
  width: 100%;
}

.tx-match__badge {
  width: 22px;
  height: 22px;
}

.tx-match__name {
  font-size: 14px;
  font-weight: 500;
  color: var(--tx-ink-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tx-match__right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: 12px;
}

.tx-match__scores {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-variant-numeric: tabular-nums;
}

.tx-match__score {
  font-size: 14px;
  font-weight: 500;
  color: var(--tx-ink-900);
  min-width: 20px;
  text-align: center;
}

.tx-match__score--finished {
  color: var(--tx-gray-500);
}

.tx-match__status-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--tx-gray-400);
}

.tx-match__datetime {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.tx-match__date {
  font-size: 12px;
  color: var(--tx-gray-500);
  text-transform: capitalize;
}

.tx-match__time {
  font-size: 14px;
  font-weight: 500;
  color: var(--tx-green-dark);
  font-variant-numeric: tabular-nums;
}

/* Finished state — desabilitado / muted */
.tx-match--finished {
  opacity: 0.55;
}

.tx-match--finished .tx-match__name {
  color: var(--tx-gray-500);
}

/* Live state */
.tx-match--live {
  border-color: var(--tx-live);
}

/* ===== Pills de estado ===== */
.tx-pill {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tx-pill--upcoming {
  background: var(--tx-green-mist);
  color: var(--tx-green-dark);
}

.tx-pill--live {
  background: var(--tx-live);
  color: var(--tx-white);
}

.tx-pill--tbc {
  background: var(--tx-warn-mist);
  color: var(--tx-warn-text);
}

/* ===== Badge fallback ===== */
.tx-badge-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--tx-gray-200);
  color: var(--tx-gray-500);
  font-size: 11px;
  font-weight: 500;
  flex-shrink: 0;
}

.tx-badge-fallback--sm {
  width: 20px;
  height: 20px;
  font-size: 10px;
}

.tx-badge-fallback--lg {
  width: 32px;
  height: 32px;
  font-size: 13px;
}

/* ===== Estado vazio ===== */
.tx-empty {
  padding: 48px 16px;
  text-align: center;
}

.tx-empty__message {
  font-size: 14px;
  color: var(--tx-gray-500);
}

/* ===== Main content area ===== */
.tx-main {
  padding-bottom: 16px;
  min-height: 50vh;
}

/* ===== Load more sentinel ===== */
.tx-load-more {
  padding: 24px 16px;
  text-align: center;
}

.tx-load-more__text {
  font-size: 13px;
  color: var(--tx-gray-400);
}

/* ===== Rodapé ===== */
.tx-footer {
  padding: 24px 16px;
  text-align: center;
  font-size: 12px;
  color: var(--tx-gray-400);
}

/* ===== Filtro de competição (pills) ===== */
.tx-compfilter {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: var(--tx-white);
  border-bottom: 1px solid var(--tx-gray-200);
}

.tx-compfilter::-webkit-scrollbar {
  display: none;
}

.tx-compfilter__pill {
  flex-shrink: 0;
  padding: 10px 16px;
  min-height: 44px;
  border-radius: 99px;
  font-family: var(--tx-font-body);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--tx-gray-200);
  background: var(--tx-white);
  color: var(--tx-ink-900);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.tx-compfilter__pill:hover {
  background: var(--tx-gray-200);
}

.tx-compfilter__pill--active {
  background: var(--tx-ink-700);
  color: var(--tx-white);
  border-color: var(--tx-ink-700);
}

.tx-compfilter__pill--active:hover {
  background: var(--tx-ink-900);
}

@media (min-width: 768px) {
  .tx-compfilter {
    padding: 12px 24px;
  }
}

/* ===== Wordmark ===== */
.tx-wordmark {
  font-family: var(--tx-font-brand);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
