.group-card {
  height: 100%;
  background: var(--color-card-blue);
  border: 1px solid rgba(255, 204, 0, 0.35);
  border-radius: var(--radius);
  color: #fff;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  overflow: hidden;
  position: relative;
}

.group-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, transparent 95%, rgba(255,255,255,0.035) 95%),
    linear-gradient(0deg, transparent 95%, rgba(255,255,255,0.035) 95%);
  background-size: 20px 20px;
  pointer-events: none;
}

.group-card__inner {
  position: relative;
  height: 100%;
  padding: clamp(12px, 3.2vw, 18px);
  display: grid;
  grid-template-rows: auto auto auto auto auto 1fr;
  overflow: hidden;
}

.group-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.group-card__label {
  margin: 0;
  color: var(--brasil-yellow-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: clamp(0.58rem, 2vw, 0.7rem);
  font-weight: 700;
}

.group-card__title {
  margin: 2px 0 0;
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 6vw, 2rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
}

.group-card__badge {
  display: grid;
  place-items: center;
  width: clamp(42px, 11vw, 52px);
  height: clamp(42px, 11vw, 52px);
  border-radius: 999px;
  background: var(--brasil-yellow);
  color: var(--brasil-blue);
  font-size: clamp(1.2rem, 5vw, 1.6rem);
  font-weight: 900;
  box-shadow: 0 6px 16px rgba(255, 204, 0, 0.35);
}

.team-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-bottom: 8px;
}

.team-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,0.08);
  min-width: 0;
}

.team-flag {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 18px;
  flex: 0 0 auto;
  font-size: 1.05rem;
  line-height: 1;
  overflow: hidden;
  border-radius: 4px;
}

.team-flag img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-code {
  color: var(--brasil-blue);
  background: var(--brasil-yellow);
  font-weight: 900;
  font-size: 0.62rem;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 999px;
  min-width: 34px;
  text-align: center;
  flex: 0 0 auto;
}
.team-name {
  font-weight: 800;
  font-size: clamp(0.72rem, 2.6vw, 0.86rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.section-title {
  margin: 9px 0 6px;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brasil-yellow-soft);
}

.standings {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 13px;
  font-size: clamp(0.66rem, 2.3vw, 0.78rem);
  background: rgba(255,255,255,0.08);
}

.standings th,
.standings td {
  padding: clamp(4px, 1.4vw, 7px) 4px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.standings th:first-child,
.standings td:first-child { text-align: left; width: 46%; }
.standings tr:last-child td { border-bottom: 0; }
.standings th { color: var(--blue-100); font-size: 0.58rem; }
.standings td:first-child { font-weight: 900; }
.standings th.standings__pts,
.standings td.standings__pts { color: var(--color-gold); font-weight: 900; }

.standings__row--qualified td:first-child { border-left: 2px solid var(--brasil-green); }
.standings__row--playoff td:first-child { border-left: 2px solid var(--color-gold); }

.standings__dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  margin-right: 5px;
  vertical-align: middle;
}

.standings__dot--qualified { background: var(--brasil-green); }
.standings__dot--playoff { background: var(--color-gold); }

.standings-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--color-muted);
}

.standings-legend__item {
  display: inline-flex;
  align-items: center;
}

.match-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  min-height: 0;
  align-content: start;
}

.match-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0;
  padding: 0;
  border-radius: 13px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--line);
  font-size: clamp(0.58rem, 2vw, 0.72rem);
  font-weight: 900;
  min-width: 0;
  overflow: hidden;
}

.match-team {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.match-row .match-team:first-child { text-align: right; }
.match-row .match-team:last-child { text-align: left; }
.match-versus {
  color: var(--brasil-yellow);
  font-size: 0.72rem;
}

.match-row__chevron {
  color: var(--color-gold);
  font-size: 0.9rem;
  font-weight: 900;
  padding: 0 6px 0 2px;
  line-height: 1;
}

.match-status {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--brasil-yellow-soft);
  font-size: clamp(0.5rem, 1.7vw, 0.58rem);
  font-weight: 700;
  margin-top: -1px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
