/* Tournament status switcher. Mirrors the terminal's compact filter chips. */
.view-section[data-view="tournaments"] .tournament-status-filters {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 4px;
  width: calc(100% - 32px);
  max-width: 688px;
  margin: 0 auto 16px;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  border: 0;
  background: transparent;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}

.view-section[data-view="tournaments"] .tournament-status-filters::-webkit-scrollbar {
  display: none;
}

.view-section[data-view="tournaments"] .tournament-status-filter {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: max-content;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid #292d34;
  border-radius: 9px;
  background: #17191f;
  color: rgba(255, 255, 255, 0.68);
  box-shadow: none;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.01em;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: color 140ms ease, background-color 140ms ease, box-shadow 140ms ease, transform 100ms ease;
}

.view-section[data-view="tournaments"] .tournament-status-filter.is-active,
.view-section[data-view="tournaments"] .tournament-status-filter[aria-selected="true"] {
  border-color: #a22025;
  background: #a22025;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(162, 32, 37, 0.25);
}

.view-section[data-view="tournaments"] .tournament-status-filter:active {
  transform: scale(0.985);
}

.view-section[data-view="tournaments"] .tournament-status-filter:focus-visible {
  outline: 2px solid rgba(255, 122, 113, 0.92);
  outline-offset: -2px;
}

.view-section[data-view="tournaments"] .tournament-rail-section[hidden],
.view-section[data-view="tournaments"] .events-community-recap-card[hidden] {
  display: none !important;
}

@media (hover: hover) and (pointer: fine) {
  .view-section[data-view="tournaments"] .tournament-status-filter:not(.is-active):not([aria-selected="true"]):hover {
    background: #20242b;
    color: #d7d7dc;
  }
}

@media (max-width: 359px) {
  .view-section[data-view="tournaments"] .tournament-status-filters {
    width: calc(100% - 24px);
  }

  .view-section[data-view="tournaments"] .tournament-status-filter {
    padding-inline: 11px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .view-section[data-view="tournaments"] .tournament-status-filter {
    transition: none;
  }
}
