.team-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 32px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow:
    0 1px 2px rgba(16, 24, 40, 0.04),
    0 2px 8px rgba(16, 24, 40, 0.06);
  margin-bottom: 20px;
}

.team-header__logo-wrap {
  flex: 0 0 112px;
  width: 112px;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-header__logo,
.team-header__logo-placeholder {
  display: block;
  width: 112px;
  height: 112px;
  object-fit: contain;
}

.team-header__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.team-header__country {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.4;
}

.team-header__flag {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  object-fit: cover;
  flex: 0 0 20px;
}

.team-header__country-name {
  font-weight: 500;
}

.team-header__name {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  color: #0f172a;
}

.team-header__name-original {
  font-size: 16px;
  line-height: 1.3;
  font-weight: 500;
  color: #6b7280;
  margin-top: 2px;
}

.team-header__tournaments {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 14px;
  line-height: 1.4;
  margin-top: 4px;
}

.team-header__tournaments-label {
  color: #6b7280;
  font-weight: 500;
}

.team-header__tournaments-list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.team-header__tournament-link {
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s ease;
}

a.team-header__tournament-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .team-header {
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border-radius: 12px;
  }

  .team-header__logo-wrap,
  .team-header__logo,
  .team-header__logo-placeholder {
    width: 80px;
    height: 80px;
    flex-basis: 80px;
  }

  .team-header__name {
    font-size: 22px;
  }

  .team-header__name-original {
    font-size: 14px;
  }
}
