* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #fff;
  color: #111;
}

.page {
  padding: 22px 18px 30px;
  max-width: 1180px;
  margin: 0 auto;
}

/* Header */
.title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.title-row h1 {
  font-size: 22px;
  margin: 0;
  font-weight: 700;
}
.pin { font-size: 18px; }

.bar {
  background: #2f62b8;
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.bar-text {
  color: #0b0b0b;
  letter-spacing: 0.5px;
  font-size: 12px;
  font-weight: 700;
}

/* Card wrapper */
.card {
  border: 2px solid #111;
  border-radius: 10px;
  padding: 16px;
  background: #fff;
}

.card-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}
.card-subtitle {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #333;
}

/* Search row */
.search-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.search-input {
  height: 42px;
  border: 2px solid #111;
  border-radius: 10px;
  padding: 0 12px;
  font-weight: 700;
}

/* Buttons */
.btn-primary {
  height: 42px;
  padding: 0 18px;
  border: 2px solid #111;
  background: #2f62b8;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-primary:hover { filter: brightness(0.95); }

.btn-secondary {
  height: 42px;
  padding: 0 16px;
  border: 2px solid #111;
  background: #f4f4f4;
  color: #111;
  font-weight: 900;
  cursor: pointer;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Filters grid */
.filters-grid {
  display: grid;
  gap: 18px 22px;
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 720px) {
  .filters-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 980px) {
  .filters-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

/* Groups */
.group { border: 0; padding: 0; margin: 0; min-width: 0; }

.group legend {
  font-size: 11px;
  color: #222;
  margin-bottom: 8px;
  padding: 0;
  text-transform: lowercase;
  font-weight: 800;
}

.hint {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #444;
}

/* Options */
.options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.options-col { grid-template-columns: 1fr; }

.group input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.opt {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid #1c1c1c;
  background: #ffffff;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  user-select: none;
  border-radius: 6px;
}

.group input[type="radio"]:checked + .opt {
  background: #f5d46b;
}

.opt:hover { filter: brightness(0.98); }

/* Results head */
.results-head {
  margin-top: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.results-count {
  font-size: 14px;
  font-weight: 900;
}

.pagination {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.page-btn {
  width: 36px;
  height: 36px;
  border: 2px solid #111;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 900;
  color: #111;
  background: #f4f4f4;
}
.page-info {
  font-weight: 900;
}

/* Cards grid */
.cards {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 980px) {
  .cards { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* Square card (igual seu exemplo) */
.torneio-card {
  border: 2px solid #111;
  background: #fff;
  border-radius: 8px;
  padding: 12px 10px;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.line {
  font-weight: 900;
  font-size: 14px;
  margin: 4px 0;
}

.line-top {
  font-size: 15px;
}

.line-name {
  font-size: 15px;
  margin-top: 8px;
  margin-bottom: 8px;
}

.mini {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.mini span {
  border: 1px solid #111;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
  background: #f4f4f4;
}

.empty {
  border: 2px dashed #111;
  border-radius: 10px;
  padding: 18px;
  font-weight: 900;
}
